const express = require("express");
const comm = require('../../../../dbcomm');

const route_dept = express.Router();

route_dept.get('/show',function(req,res){
    comm.exec("select * from dept",function (err,result){
        if(err) throw err;
        var json = {
            code:0
            ,msg:'成功'
            ,data:result
        };
        res.send(json); // send end({aa:123})....
    });
   
});

module.exports = route_dept;